#ifndef __SLIST_H__
#define __SLIST_H__

// singly node type
struct snode {
    int data;
    struct snode *next;
};
typedef struct snode sNode_t;


void insertAfter(sNode_t *prevNode, int x); //insert x after prevNode
void insertAtFront(sNode_t **head, int x); //insert x at front
void insertAtTail(sNode_t **head, int x); //insert node at tail
sNode_t* deleteFromFront(sNode_t **head); //delete a node from front
void printList(sNode_t *head);


#endif